package br.com.kizura.service.producers;

import javax.enterprise.context.SessionScoped;
import javax.enterprise.inject.Produces;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

import br.com.kizura.service.qualifiers.PersistenciaFactory;

public class PersistenceFactory {

	@PersistenciaFactory
	@Produces
	@SessionScoped
	public EntityManagerFactory createManagerFactory(){
		return Persistence.createEntityManagerFactory("kizura");
	}
}
